package OOP.day11;

import java.util.Arrays;

public class EnumTest {
    public static void main(String[] args) {
        Seasons season = Seasons.SPRING;
        System.out.println(season.name());
        Seasons[] seasons = Seasons.values();

        for (Seasons s : seasons) {
            System.out.println(s.getSeasonName()+"是一个"+s.getSeasonDesc()+"的季节");
        }
        System.out.println("+++++++++++");
        System.out.println(2+"2");
        switch (season){
            case SPRING:
                System.out.println("春天");
                break;
            case AUTUMN:
                System.out.println("秋天");
                break;
            case SUMMER:
                System.out.println("夏天");
                break;
            case WINTER:
                System.out.println("冬天");
                break;
        }
    }
}
